<?php
namespace Tensent\SentAdmin;

use Closure;
use Tensent\SentAdmin\Traits\HasAssets;
use Tensent\SentAdmin\Traits\HasHtml;

class Admin{
    use HasAssets;
    use HasHtml;

    const VERSION = '2.1.5-beta';

    /**
     * 设置翻译文件路径.
     *
     * @param  string|null  $path
     */
    public static function translation(?string $path)
    {
        static::context()->translation = $path;
    }

    /**
     * 上下文管理.
     *
     * @return \Dcat\Admin\Support\Context
     */
    public static function context()
    {
        return app('admin.context');
    }
}